<?php
/**
 * 支付宝订单退款
 */
namespace Org\Util;
class AliRefund{
	public $appid;//appid
	public $mch_id;//商户id
	public $transaction_id;//微信订单号
	public $out_trade_no;//商户订单 号
	public $out_refund_no;//退款订单号
	public $total_fee;//订单支付总金额
	public $refund_fee;//退款金额
	public $op_user_id;//操作员帐号, 默认为商户号
	public $key;//支付密匙
	public $post_url = 'https://api.mch.weixin.qq.com/secapi/pay/refund';//接口地址
 	public function __construct($appid,$mch_id,$transaction_id,$out_trade_no,$out_refund_no,$total_fee,$refund_fee,$op_user_id,$key) {
        $this->appid = $appid;
        $this->mch_id = $mch_id;
        $this->transaction_id = $transaction_id;
        $this->out_trade_no = $out_trade_no;
        $this->out_refund_no =$out_refund_no;
        $this->total_fee =$total_fee;
        // $this->total_fee =1;
        $this->refund_fee =$refund_fee;
        $this->op_user_id =$op_user_id;
        $this->key=$key;
    }
}